package cn.edu.xmu.wnw.dao;

import java.util.List;

import org.springframework.context.ApplicationContext;

import cn.edu.xmu.wnw.pojo.Community;

public interface CommunityDAO {

	public void initDao();

	public void save(Community transientInstance);

	public void delete(Community persistentInstance);

	public Community findById(java.lang.Integer id);

	public List findByExample(Community instance);

	public List findByProperty(String propertyName, Object value);

	public List findByName(Object name);

	public List findByDescription(Object description);

	public List findAll();

	public Community merge(Community detachedInstance);

	public void attachDirty(Community instance);

	public void attachClean(Community instance);

	public CommunityDAO getFromApplicationContext(ApplicationContext ctx);
}